interface FetchValidateCouponDetailAPIResData {
  code: number
  msg: string
  data: CouponDetail
  time: string
}

interface FetchValidateCouponDetailAPIParams {
  id: string
}

export function fetchValidateCouponDetailAPI(params: FetchValidateCouponDetailAPIParams, token: string) {
  return httpInstance.get<FetchValidateCouponDetailAPIResData, FetchValidateCouponDetailAPIParams>(
    '/api/coupon/scancoupondetail',
    { params, headers: { token } },
  )
}
